package org.example.bean;

import java.time.LocalDate;
import java.util.List;

public class EmailBean {
    private Integer id;
    private StaffBean send;
    private String title;
    private String content;
    private String url;
    private LocalDate createDate = LocalDate.now();
    private String acceptNames;
    private String status = "有效";

    public EmailBean() {
    }

    public EmailBean(StaffBean send, String title, String content, String url) {
        this.send = send;
        this.title = title;
        this.content = content;
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public StaffBean getSend() {
        return send;
    }

    public void setSend(StaffBean send) {
        this.send = send;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public String getAcceptNames() {
        return acceptNames;
    }

    public void setAcceptNames(String acceptNames) {
        this.acceptNames = acceptNames;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "EmailBean{" +
                "id=" + id +
                ", send=" + send +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", createDate=" + createDate +
                ", acceptNames='" + acceptNames + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
